
package kaizone.haining.chaobohui.json;

import org.json.JSONObject;

public class SubjectDO extends JSONResponse {
    private SubjectItem data;

    public SubjectItem getData() {
        return data;
    }

    public void setData(SubjectItem data) {
        this.data = data;
    }
    
    public static SubjectDO parseJson(String str){
        SubjectDO subjectDO = new SubjectDO();
        try{
            JSONObject jsonObject = new JSONObject(str);
            
            JSONResponse response = JSONResponse.parse(jsonObject);
            subjectDO.setJSONResponse(response);
            
            SubjectItem data = SubjectItem.parse(jsonObject);
            subjectDO.setData(data);
            
            return subjectDO;
        }catch(Exception e){
            e.printStackTrace();
        }
        return subjectDO;
    }

}
